package com.apeli.untis;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Workbook;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;


public class ExcelUntil {
    static final Logger logger=LoggerFactory.getLogger(ExcelUntil.class);
    public  static  void createNewWorkBook() {
        Workbook wb=new HSSFWorkbook();
        try {
            OutputStream out=new FileOutputStream("Workbook.xls");
            wb.write(out);
            logger.info("创建excel");
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
